import Main from "../pages/Main";

import Home from "../pages/Home";
import Classify from '../pages/ClassIfy';
import My from "../pages/My";
import ShopCar from "../pages/ShopCar";

const routes = [
    {
        path: '/',
        element: <Main/>,
        children: [
            {
                path: '/home',
                element: <Home/>
            },{
                path: '/classify',
                element: <Classify/>
            },
            {
                path: '/shopcar',
                element: <ShopCar/>
            },
            {
                path: '/my',
                element: <My/>
            }
        ]
    },
    {
        from: '/',
        to: '/home'
    }
]

export default routes